home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 2000 February: Tool Chest / Dev.CD Feb 00 TC.toast / pc / what's new? / sample code / human interface toolbox / packagetool / packageutils.h < prev    next >
Encoding:
C/C++ Source or Header  |  1999-12-02  |  1.4 KB  |  45 lines

  1. /*
  2.     file PackageUtils.h
  3.     
  4.     Description:
  5.     This file contains the routine prototype for the IdentifyPackage
  6.     routine package savy applications can use to identify document
  7.     packages.
  8.     
  9.     PackageTool is an application illustrating how to create application
  10.     packages in Mac OS 9.  It provides a simple interface for converting
  11.     correctly formatted folders into packages and vice versa.
  12.  
  13.     Copyright: © 1999 by Apple Computer, Inc.
  14.     all rights reserved.
  15.     
  16.     Disclaimer:
  17.     You may incorporate this sample code into your applications without
  18.     restriction, though the sample code has been provided "AS IS" and the
  19.     responsibility for its operation is 100% yours.  However, what you are
  20.     not permitted to do is to redistribute the source as "DSC Sample Code"
  21.     after having made changes. If you're going to re-distribute the source,
  22.     we require that you make it clear in the source that the code was
  23.     descended from Apple Sample Code, but that you've made changes.
  24.     
  25.     Change History (most recent first):
  26.     10/19/99 created
  27.  
  28. */
  29.  
  30.  
  31. #ifndef __PACKAGEUTILS__
  32. #define __PACKAGEUTILS__
  33.  
  34. #define TARGET_CARBON 1
  35.  
  36. #include <Types.h>
  37. #include <Files.h>
  38.  
  39. /* IdentifyPackage returns true if the file system object refered to
  40.     by *target refers to a package.  If it is a package, then 
  41.     *mainPackageFile is set to refer to the package's main file. */
  42. Boolean IdentifyPackage(FSSpec *target, FSSpec *mainPackageFile);
  43.  
  44. #endif
  45.